package controllers

import (
	"gdshop-font-api-go/app/request/ArticleReq"
	"gdshop-font-api-go/app/service/ArticleService"
	"gdshop-font-api-go/library/response"
	"github.com/gogf/gf/net/ghttp"
)

type ArticleController struct {
	*BaseController
}

func (c *ArticleController) Content(r *ghttp.Request) *response.JsonResponse {
	var parames *ArticleReq.Content
	if err := r.Parse(&parames); err != nil {
		return response.FailByRequestMessage(r, err.Error())
	}
	return ArticleService.Content(r.GetCtx(), parames)
}
